package top.hkyzf.onekeycommand.client;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

/**
 * description: 一键命令 Mod 客户端入口点
 * @author zhufeng
 * @date 2022/9/1 12:11
 * @version V1.0
 */
@Environment(EnvType.CLIENT)
public class OneKeyCommandClient implements ClientModInitializer {

    @Override
    public void onInitializeClient() {
        /*ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (TRANSPORT_KEY.wasPressed()) {
                if (client.player != null) {
                    client.player.sendCommand("home safe");
                }
            }

            while (ON_HOOK_KEY.wasPressed()) {
                if (client.player != null) {
                    client.player.sendCommand("home Home");
                }
            }

        });*/
    }
}
